﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第七十四题
//BC76 公务员面试
//https://www.nowcoder.com/practice/f3a134908d5b41869f14f58307008a97?tpId=107&tqId=33357&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3FtpId%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include<stdio.h>

int main() {
    int arr[7] = { 0 };
    int i = 0, j = 0;
    while (scanf("%d%d%d%d%d%d%d", &arr[0], &arr[1], &arr[2], &arr[3], &arr[4],
        &arr[5], &arr[6]) != EOF) {
        float sum = 0.0f, aver = 0.0f;

        //冒泡排序
        for (i = 0; i < 7; i++) {
            for (j = 0; j < 7 - 1 - i; j++) {
                if (arr[j] > arr[j + 1]) {
                    int tmp = 0;
                    tmp = arr[j];
                    arr[j] = arr[j + 1];
                    arr[j + 1] = tmp;
                }
            }
        }

        for (i = 1; i < 6; i++) {
            sum += arr[i];
        }

        aver = sum / 5.00;
        printf("%.2f\n", aver);
    }

    return 0;
}
